/*
 * Created by JFormDesigner on Mon Mar 28 12:49:17 CST 2022
 */

package com.gxu.sjjg;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * @author unknown
 */
public class AlterFuction extends JFrame {
    public AlterFuction() {
        initComponents();
    }

    private void button1(ActionEvent e) {//界面跳转，点击删除学生信息按钮，跳转到删除界面。
        new DeleteGrade();
    }

    private void button2(ActionEvent e) {//同上
        new Modify();
    }
    //界面代码
    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        panel1 = new JPanel();
        button1 = new JButton();
        button2 = new JButton();
        label1 = new JLabel();

        //======== this ========
        setTitle("\u5b50\u83dc\u5355");
        setVisible(true);
        setResizable(false);
        var contentPane = getContentPane();
        contentPane.setLayout(null);

        //======== panel1 ========
        {
            panel1.setLayout(null);

            //---- button1 ----
            button1.setText("\u5220\u9664\u5b66\u751f\u6210\u7ee9");
            button1.addActionListener(e -> button1(e));
            panel1.add(button1);
            button1.setBounds(60, 35, 126, button1.getPreferredSize().height);

            //---- button2 ----
            button2.setText("\u4fee\u6539\u5b66\u751f\u6210\u7ee9");
            button2.addActionListener(e -> button2(e));
            panel1.add(button2);
            button2.setBounds(60, 90, 125, button2.getPreferredSize().height);

            //---- label1 ----
            label1.setIcon(new ImageIcon(getClass().getResource("/myimage/loginimg.jpg")));
            panel1.add(label1);
            label1.setBounds(0, 0, 245, 170);
        }
        contentPane.add(panel1);
        panel1.setBounds(0, 0, 245, 170);

        contentPane.setPreferredSize(new Dimension(245, 200));
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    private JPanel panel1;
    private JButton button1;
    private JButton button2;
    private JLabel label1;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
